<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class FeeHelper {

    public static function getCloneWithZeroValue($fees) {
        $zeroFees = array();
        if ($fees != null) {
            $count = count($fees);
            for ($i = 0; $i < $count; $i++) {
                $zeroFees[] = new Fee($fees[$i]->getName(), 0.0);
            }
        } else {
            $zeroFees = null;
        }
        return $zeroFees;
    }

}
?>
